#ifndef __CRC16_H
#define __CRC16_H

#define FrameHeader 0x9B
#define FrameEnd    0x9D


unsigned short CRC16MODBUS(unsigned char *pucFrame, unsigned short usLen);
void PackageSendData(unsigned char *dat,unsigned char *len);
unsigned char UnpackReceivedData(unsigned char *data, unsigned char *len);
void MEM_CPY(unsigned char *d, unsigned char *s, unsigned char len);
void MEM_SET(unsigned char *p, unsigned char v, unsigned char len);
#endif
